<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: /Users/wangxiao/git/emp-toolkit/emp-tool/io/io_channel.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('io__channel_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">io_channel.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="io__channel_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;block.h&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utils__ec_8h.html">utils_ec.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="prg_8h.html">prg.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef IO_CHANNEL_H__</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define IO_CHANNEL_H__</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_i_o_channel.html">   12</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_i_o_channel.html">IOChannel</a> { <span class="keyword">public</span>:</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a0eac8ab2f799b114b78dba43d690fa1b">   13</a></span>&#160;    <a class="code" href="class_p_r_g.html">PRG</a> *<a class="code" href="class_i_o_channel.html#a0eac8ab2f799b114b78dba43d690fa1b">prg</a> = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">   14</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * data, <span class="keywordtype">int</span> nbyte) {</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        <span class="keyword">static_cast&lt;</span>T*<span class="keyword">&gt;</span>(<span class="keyword">this</span>)-&gt;send_data_impl(data, nbyte);</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    }</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">   17</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(<span class="keywordtype">void</span> * data, <span class="keywordtype">int</span> nbyte) {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <span class="keyword">static_cast&lt;</span>T*<span class="keyword">&gt;</span>(<span class="keyword">this</span>)-&gt;recv_data_impl(data, nbyte);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    }</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#ac6bef80994fb0c2096ac00078f680e67">   21</a></span>&#160;    <a class="code" href="class_i_o_channel.html#ac6bef80994fb0c2096ac00078f680e67">~IOChannel</a>() {</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="keywordflow">if</span>(prg != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;            <span class="keyword">delete</span> <a class="code" href="class_i_o_channel.html#a0eac8ab2f799b114b78dba43d690fa1b">prg</a>;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    }</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#aec03e98420a39877813e34bbaf2600d7">   26</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#aec03e98420a39877813e34bbaf2600d7">set_key</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* b) {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keywordflow">if</span>(b == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            <span class="keyword">delete</span> <a class="code" href="class_i_o_channel.html#a0eac8ab2f799b114b78dba43d690fa1b">prg</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;            prg = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        }</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="keywordflow">if</span>(prg != <span class="keyword">nullptr</span>) </div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;            <span class="keyword">delete</span> <a class="code" href="class_i_o_channel.html#a0eac8ab2f799b114b78dba43d690fa1b">prg</a>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        prg = <span class="keyword">new</span> <a class="code" href="class_p_r_g.html">PRG</a>(b);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a40d5c1cdd081e0e6ab802630f162b49a">   37</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#a40d5c1cdd081e0e6ab802630f162b49a">send_data_enc</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * data, <span class="keywordtype">int</span> len) {</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keywordtype">char</span> * tmp = <span class="keyword">new</span> <span class="keywordtype">char</span>[len];</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        prg-&gt;<a class="code" href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">random_data</a>(tmp, len);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; len; ++i)</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            tmp[i] ^= ((<span class="keywordtype">char</span> *)data)[i];</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(tmp, len);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keyword">delete</span>[] tmp;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#adb27975847c736b9ecff084b04f56131">   46</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#adb27975847c736b9ecff084b04f56131">send_block_enc</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data, <span class="keywordtype">int</span> len) {</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * tmp = <span class="keyword">new</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>[len];</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        prg-&gt;<a class="code" href="class_p_r_g.html#a822a2e39f1d2629b881ce9b3b8d66bf9">random_block</a>(tmp, len);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; len; ++i)</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            tmp[i] = <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(data[i], tmp[i]);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <a class="code" href="class_i_o_channel.html#a41614ba924161dfafdced9f2d2201823">send_block</a>(tmp, len);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keyword">delete</span>[] tmp;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    }</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#ab72c7505c19f1d9fe99d03c546a9b358">   54</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#ab72c7505c19f1d9fe99d03c546a9b358">send_bn_enc</a>(<span class="keyword">const</span> bn_t * bn, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        uint64_t buffer[4];</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        uint64_t buffer2[4];</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        uint32_t bn_size;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            bn_size = bn_size_raw(bn[i]);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            prg-&gt;<a class="code" href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">random_data</a>(buffer2, bn_size*<span class="keyword">sizeof</span>(uint64_t));</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            bn_write_raw(buffer, bn_size, bn[i]);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> k = 0; k &lt; bn_size; ++k)</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                buffer[k]^=buffer2[k];</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(&amp;bn_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(buffer, bn_size*<span class="keyword">sizeof</span>(uint64_t));</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        }</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a17bb187f319c7b48470377a55b9394aa">   69</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#a17bb187f319c7b48470377a55b9394aa">recv_data_enc</a>(<span class="keywordtype">void</span> * data, <span class="keywordtype">int</span> len) {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(data, len);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">if</span>(prg == <span class="keyword">nullptr</span>)<span class="keywordflow">return</span>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordtype">char</span> * tmp = <span class="keyword">new</span> <span class="keywordtype">char</span>[len];</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        prg-&gt;<a class="code" href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">random_data</a>(tmp, len);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; len; ++i)</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            ((<span class="keywordtype">char</span> *)data)[i] ^= tmp[i];</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keyword">delete</span>[] tmp;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a2998055be4fd09f3bef9e7c179d0fb24">   78</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#a2998055be4fd09f3bef9e7c179d0fb24">recv_block_enc</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data, <span class="keywordtype">int</span> len) {</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <a class="code" href="class_i_o_channel.html#a590745a2e3eadaaa64dac6c76604d010">recv_block</a>(data, len);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">if</span>(prg == <span class="keyword">nullptr</span>)<span class="keywordflow">return</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * tmp = <span class="keyword">new</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>[len];</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        prg-&gt;<a class="code" href="class_p_r_g.html#a822a2e39f1d2629b881ce9b3b8d66bf9">random_block</a>(tmp, len);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; len; ++i)</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            data[i] = <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(data[i], tmp[i]);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keyword">delete</span>[] tmp;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    }</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#ad19abdfff835d15ab6386fdbea252630">   87</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#ad19abdfff835d15ab6386fdbea252630">send_eb_enc</a>(<span class="keyword">const</span> eb_t * eb, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        uint8_t buffer[<a class="code" href="utils__ec_8h.html#a68ab140a6106405e8b0f0eccf4e1b113">EB_SIZE</a>];</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        uint8_t buffer2[<a class="code" href="utils__ec_8h.html#a68ab140a6106405e8b0f0eccf4e1b113">EB_SIZE</a>];</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            uint32_t eb_size = eb_size_bin(eb[i], <a class="code" href="utils__ec_8h.html#af693362576a030d027a217a609106008">ECC_PACK</a>);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(&amp;eb_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            prg-&gt;<a class="code" href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">random_data</a>(buffer2, eb_size);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            eb_write_bin(buffer, eb_size, eb[i], <a class="code" href="utils__ec_8h.html#af693362576a030d027a217a609106008">ECC_PACK</a>);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> k = 0; k &lt; eb_size; ++k) {</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                buffer[k] = (char)(buffer[k]^buffer2[k]);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            }</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(buffer, eb_size*<span class="keyword">sizeof</span>(uint8_t));</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        }</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a0bef7e04299037573745c8e2495c8f82">  102</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#a0bef7e04299037573745c8e2495c8f82">recv_eb_enc</a>(eb_t* eb, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        uint8_t buffer[<a class="code" href="utils__ec_8h.html#a68ab140a6106405e8b0f0eccf4e1b113">EB_SIZE</a>];</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        uint8_t buffer2[<a class="code" href="utils__ec_8h.html#a68ab140a6106405e8b0f0eccf4e1b113">EB_SIZE</a>];</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        uint32_t eb_size;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(&amp;eb_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(buffer, eb_size*<span class="keyword">sizeof</span>(uint8_t));</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            <span class="keywordflow">if</span>(prg == <span class="keyword">nullptr</span>)<span class="keywordflow">continue</span>;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            prg-&gt;<a class="code" href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">random_data</a>(buffer2, eb_size);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> k = 0; k &lt; eb_size; ++k) {</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                buffer[k] = (char)(buffer[k]^buffer2[k]);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            }</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            eb_read_bin(eb[i], buffer, eb_size);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        }</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#ab52e28fd4733fea420c1a5543a05033b">  117</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#ab52e28fd4733fea420c1a5543a05033b">recv_bn_enc</a>(bn_t* bn, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        uint64_t buffer[4];</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        uint64_t buffer2[4];</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        uint32_t bn_size;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(&amp;bn_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(buffer, bn_size*<span class="keyword">sizeof</span>(uint64_t));</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            <span class="keywordflow">if</span>(prg == <span class="keyword">nullptr</span>)<span class="keywordflow">continue</span>;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            prg-&gt;<a class="code" href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">random_data</a>(buffer2, <span class="keyword">sizeof</span>(uint64_t)*bn_size);</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> k = 0; k &lt; bn_size; ++k)</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                buffer[k] ^=buffer2[k];</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            bn_read_raw(bn[i], buffer, bn_size);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        }</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a41614ba924161dfafdced9f2d2201823">  132</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#a41614ba924161dfafdced9f2d2201823">send_block</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data, <span class="keywordtype">int</span> nblock) {</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(data, nblock*<span class="keyword">sizeof</span>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>));</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    }</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a590745a2e3eadaaa64dac6c76604d010">  136</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#a590745a2e3eadaaa64dac6c76604d010">recv_block</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data, <span class="keywordtype">int</span> nblock) {</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(data, nblock*<span class="keyword">sizeof</span>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>));</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#aad8d725dd71ade3a6e846349beb16d43">  140</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#aad8d725dd71ade3a6e846349beb16d43">send_eb</a>(<span class="keyword">const</span> eb_t * eb, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        uint8_t buffer[<a class="code" href="utils__ec_8h.html#a68ab140a6106405e8b0f0eccf4e1b113">EB_SIZE</a>];</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;            <span class="keywordtype">int</span> eb_size = eb_size_bin(eb[i], <a class="code" href="utils__ec_8h.html#af693362576a030d027a217a609106008">ECC_PACK</a>);</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;            eb_write_bin(buffer, eb_size, eb[i], <a class="code" href="utils__ec_8h.html#af693362576a030d027a217a609106008">ECC_PACK</a>);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(&amp;eb_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(buffer, eb_size*<span class="keyword">sizeof</span>(uint8_t));</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#aa028f3ebb09c2cfa9c58be21ef81c271">  150</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#aa028f3ebb09c2cfa9c58be21ef81c271">recv_eb</a>(eb_t* eb, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        uint8_t buffer[<a class="code" href="utils__ec_8h.html#a68ab140a6106405e8b0f0eccf4e1b113">EB_SIZE</a>];</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="keywordtype">int</span> eb_size;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(&amp;eb_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(buffer, eb_size*<span class="keyword">sizeof</span>(uint8_t));</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            eb_read_bin(eb[i], buffer, eb_size);</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        }</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    }</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#a6772f720a933d14fcaa1f23de41c8aaa">  160</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#a6772f720a933d14fcaa1f23de41c8aaa">send_bn</a>(<span class="keyword">const</span> bn_t * bn, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        uint64_t buffer[4];</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keywordtype">int</span> bn_size;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            bn_size = bn_size_raw(bn[i]);   </div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            bn_write_raw(buffer, bn_size, bn[i]);</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(&amp;bn_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            <a class="code" href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">send_data</a>(buffer, bn_size*<span class="keyword">sizeof</span>(uint64_t));</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        }</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    }</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="class_i_o_channel.html#aee3630f3b3f4fcc602ade811434660cc">  171</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_i_o_channel.html#aee3630f3b3f4fcc602ade811434660cc">recv_bn</a>(bn_t* bn, <span class="keywordtype">size_t</span> num) {</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        uint64_t buffer[4];</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        <span class="keywordtype">int</span> bn_size;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; num; ++i) {</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(&amp;bn_size, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;            <a class="code" href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">recv_data</a>(buffer, bn_size*<span class="keyword">sizeof</span>(uint64_t));</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            bn_read_raw(bn[i], buffer, bn_size);</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        }</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    }</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;};</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">#endif// IO_CHANNEL_H__</span></div><div class="ttc" id="class_i_o_channel_html_a0bef7e04299037573745c8e2495c8f82"><div class="ttname"><a href="class_i_o_channel.html#a0bef7e04299037573745c8e2495c8f82">IOChannel::recv_eb_enc</a></div><div class="ttdeci">void recv_eb_enc(eb_t *eb, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:102</div></div>
<div class="ttc" id="class_i_o_channel_html_a6772f720a933d14fcaa1f23de41c8aaa"><div class="ttname"><a href="class_i_o_channel.html#a6772f720a933d14fcaa1f23de41c8aaa">IOChannel::send_bn</a></div><div class="ttdeci">void send_bn(const bn_t *bn, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:160</div></div>
<div class="ttc" id="class_i_o_channel_html_ac896441a0a757bc1170d7544483f6f3a"><div class="ttname"><a href="class_i_o_channel.html#ac896441a0a757bc1170d7544483f6f3a">IOChannel::send_data</a></div><div class="ttdeci">void send_data(const void *data, int nbyte)</div><div class="ttdef"><b>Definition:</b> io_channel.h:14</div></div>
<div class="ttc" id="class_i_o_channel_html_ab72c7505c19f1d9fe99d03c546a9b358"><div class="ttname"><a href="class_i_o_channel.html#ab72c7505c19f1d9fe99d03c546a9b358">IOChannel::send_bn_enc</a></div><div class="ttdeci">void send_bn_enc(const bn_t *bn, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:54</div></div>
<div class="ttc" id="class_i_o_channel_html_aecdc2e6d7e95d96d346c63fc57e5b4eb"><div class="ttname"><a href="class_i_o_channel.html#aecdc2e6d7e95d96d346c63fc57e5b4eb">IOChannel::recv_data</a></div><div class="ttdeci">void recv_data(void *data, int nbyte)</div><div class="ttdef"><b>Definition:</b> io_channel.h:17</div></div>
<div class="ttc" id="garble_2block_8h_html_a65abbf31b0a30290189cdb5059b5f785"><div class="ttname"><a href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a></div><div class="ttdeci">__m128i block</div><div class="ttdef"><b>Definition:</b> block.h:8</div></div>
<div class="ttc" id="class_i_o_channel_html_ab52e28fd4733fea420c1a5543a05033b"><div class="ttname"><a href="class_i_o_channel.html#ab52e28fd4733fea420c1a5543a05033b">IOChannel::recv_bn_enc</a></div><div class="ttdeci">void recv_bn_enc(bn_t *bn, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:117</div></div>
<div class="ttc" id="utils_2block_8h_html_a939b7dd0e7479964d6fe6984b90dd5ce"><div class="ttname"><a href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a></div><div class="ttdeci">block xorBlocks(block x, block y)</div><div class="ttdef"><b>Definition:</b> block.h:35</div></div>
<div class="ttc" id="utils__ec_8h_html_af693362576a030d027a217a609106008"><div class="ttname"><a href="utils__ec_8h.html#af693362576a030d027a217a609106008">ECC_PACK</a></div><div class="ttdeci">#define ECC_PACK</div><div class="ttdef"><b>Definition:</b> utils_ec.h:9</div></div>
<div class="ttc" id="class_i_o_channel_html_a17bb187f319c7b48470377a55b9394aa"><div class="ttname"><a href="class_i_o_channel.html#a17bb187f319c7b48470377a55b9394aa">IOChannel::recv_data_enc</a></div><div class="ttdeci">void recv_data_enc(void *data, int len)</div><div class="ttdef"><b>Definition:</b> io_channel.h:69</div></div>
<div class="ttc" id="class_i_o_channel_html_aec03e98420a39877813e34bbaf2600d7"><div class="ttname"><a href="class_i_o_channel.html#aec03e98420a39877813e34bbaf2600d7">IOChannel::set_key</a></div><div class="ttdeci">void set_key(const block *b)</div><div class="ttdef"><b>Definition:</b> io_channel.h:26</div></div>
<div class="ttc" id="class_i_o_channel_html_a2998055be4fd09f3bef9e7c179d0fb24"><div class="ttname"><a href="class_i_o_channel.html#a2998055be4fd09f3bef9e7c179d0fb24">IOChannel::recv_block_enc</a></div><div class="ttdeci">void recv_block_enc(block *data, int len)</div><div class="ttdef"><b>Definition:</b> io_channel.h:78</div></div>
<div class="ttc" id="class_i_o_channel_html_aa028f3ebb09c2cfa9c58be21ef81c271"><div class="ttname"><a href="class_i_o_channel.html#aa028f3ebb09c2cfa9c58be21ef81c271">IOChannel::recv_eb</a></div><div class="ttdeci">void recv_eb(eb_t *eb, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:150</div></div>
<div class="ttc" id="class_i_o_channel_html_aad8d725dd71ade3a6e846349beb16d43"><div class="ttname"><a href="class_i_o_channel.html#aad8d725dd71ade3a6e846349beb16d43">IOChannel::send_eb</a></div><div class="ttdeci">void send_eb(const eb_t *eb, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:140</div></div>
<div class="ttc" id="class_p_r_g_html_a822a2e39f1d2629b881ce9b3b8d66bf9"><div class="ttname"><a href="class_p_r_g.html#a822a2e39f1d2629b881ce9b3b8d66bf9">PRG::random_block</a></div><div class="ttdeci">void random_block(block *data, int nblocks=1)</div><div class="ttdef"><b>Definition:</b> prg.h:75</div></div>
<div class="ttc" id="class_i_o_channel_html_a40d5c1cdd081e0e6ab802630f162b49a"><div class="ttname"><a href="class_i_o_channel.html#a40d5c1cdd081e0e6ab802630f162b49a">IOChannel::send_data_enc</a></div><div class="ttdeci">void send_data_enc(const void *data, int len)</div><div class="ttdef"><b>Definition:</b> io_channel.h:37</div></div>
<div class="ttc" id="prg_8h_html"><div class="ttname"><a href="prg_8h.html">prg.h</a></div></div>
<div class="ttc" id="utils__ec_8h_html"><div class="ttname"><a href="utils__ec_8h.html">utils_ec.h</a></div></div>
<div class="ttc" id="utils__ec_8h_html_a68ab140a6106405e8b0f0eccf4e1b113"><div class="ttname"><a href="utils__ec_8h.html#a68ab140a6106405e8b0f0eccf4e1b113">EB_SIZE</a></div><div class="ttdeci">#define EB_SIZE</div><div class="ttdef"><b>Definition:</b> utils_ec.h:11</div></div>
<div class="ttc" id="class_i_o_channel_html_adb27975847c736b9ecff084b04f56131"><div class="ttname"><a href="class_i_o_channel.html#adb27975847c736b9ecff084b04f56131">IOChannel::send_block_enc</a></div><div class="ttdeci">void send_block_enc(const block *data, int len)</div><div class="ttdef"><b>Definition:</b> io_channel.h:46</div></div>
<div class="ttc" id="class_i_o_channel_html_a0eac8ab2f799b114b78dba43d690fa1b"><div class="ttname"><a href="class_i_o_channel.html#a0eac8ab2f799b114b78dba43d690fa1b">IOChannel::prg</a></div><div class="ttdeci">PRG * prg</div><div class="ttdef"><b>Definition:</b> io_channel.h:13</div></div>
<div class="ttc" id="class_p_r_g_html"><div class="ttname"><a href="class_p_r_g.html">PRG</a></div><div class="ttdef"><b>Definition:</b> prg.h:16</div></div>
<div class="ttc" id="class_i_o_channel_html_ad19abdfff835d15ab6386fdbea252630"><div class="ttname"><a href="class_i_o_channel.html#ad19abdfff835d15ab6386fdbea252630">IOChannel::send_eb_enc</a></div><div class="ttdeci">void send_eb_enc(const eb_t *eb, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:87</div></div>
<div class="ttc" id="class_i_o_channel_html_ac6bef80994fb0c2096ac00078f680e67"><div class="ttname"><a href="class_i_o_channel.html#ac6bef80994fb0c2096ac00078f680e67">IOChannel::~IOChannel</a></div><div class="ttdeci">~IOChannel()</div><div class="ttdef"><b>Definition:</b> io_channel.h:21</div></div>
<div class="ttc" id="class_p_r_g_html_a3b64a0c91c31cec853c1829953409520"><div class="ttname"><a href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">PRG::random_data</a></div><div class="ttdeci">void random_data(void *data, int nbytes)</div><div class="ttdef"><b>Definition:</b> prg.h:49</div></div>
<div class="ttc" id="class_i_o_channel_html_aee3630f3b3f4fcc602ade811434660cc"><div class="ttname"><a href="class_i_o_channel.html#aee3630f3b3f4fcc602ade811434660cc">IOChannel::recv_bn</a></div><div class="ttdeci">void recv_bn(bn_t *bn, size_t num)</div><div class="ttdef"><b>Definition:</b> io_channel.h:171</div></div>
<div class="ttc" id="class_i_o_channel_html_a41614ba924161dfafdced9f2d2201823"><div class="ttname"><a href="class_i_o_channel.html#a41614ba924161dfafdced9f2d2201823">IOChannel::send_block</a></div><div class="ttdeci">void send_block(const block *data, int nblock)</div><div class="ttdef"><b>Definition:</b> io_channel.h:132</div></div>
<div class="ttc" id="class_i_o_channel_html_a590745a2e3eadaaa64dac6c76604d010"><div class="ttname"><a href="class_i_o_channel.html#a590745a2e3eadaaa64dac6c76604d010">IOChannel::recv_block</a></div><div class="ttdeci">void recv_block(block *data, int nblock)</div><div class="ttdef"><b>Definition:</b> io_channel.h:136</div></div>
<div class="ttc" id="class_i_o_channel_html"><div class="ttname"><a href="class_i_o_channel.html">IOChannel</a></div><div class="ttdef"><b>Definition:</b> io_channel.h:12</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_eec959d81771dc8b1a750b834e1341eb.html">emp-tool</a></li><li class="navelem"><a class="el" href="dir_6f7196b439314a1a73bb5510dd78598a.html">io</a></li><li class="navelem"><a class="el" href="io__channel_8h.html">io_channel.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
